#pragma once
//#include "../diplom.h"
#include "DGraphicObject.h"


class DCircle: public DGraphicObject
{
	wxPoint m_position;
	int m_radius;

public:
	DCircle(void);
	DCircle(wxString *str);
	~DCircle(void);

	void Draw(wxDC *dc);
	bool PointInside(wxPoint *pnt);
	float GetArea();
	void SetRadius(int rad) { m_radius = rad; }
	int GetRadius() { return m_radius; }
	void SetPosition(wxPoint *wxp) { m_position = *wxp; }
	wxPoint GetPosition() { return m_position; }
	void ConvertToText(wxString *str);
	wxPoint GetTopLeft(void);
	wxPoint GetBottomRight();
};

